package com.ikun.admin.modules.sys.vo;

import com.ikun.admin.modules.sys.build.queryBuild.NoticeSenderIdQueryBuilder;
import com.ikun.common.search.annotation.QueryUtil;
import com.ikun.common.search.enums.QueryModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName NoticeListParamVo
 * @Description:
 * @CreateDate: 2024/7/17 9:30
 */
@Data
@ApiModel("通知列表参数")
public class NoticeListParamVo {

    @ApiModelProperty("类型")
    @QueryUtil(colName = "type")
    private Integer type;

    @ApiModelProperty("状态 0发布中 1已下架")
    @QueryUtil(colName = "status")
    private Integer status;

    @ApiModelProperty("发布人realName")
    @QueryUtil(colName = "senderId", queryMode = QueryModel.LIKE, customProcess = true, customClass = NoticeSenderIdQueryBuilder.class)
    private String sender;

    @ApiModelProperty("标题")
    @QueryUtil(colName = "title", queryMode = QueryModel.LIKE)
    private String title;

}
